namespace FluentBinding.WinForms
{
    /// <summary>
    /// Repesents extention interface for custom type convertors
    /// (when the type of the property in the entity and type of the property in the
    /// data-bound control are different)    
    /// </summary>
    /// <typeparam name="E">Type of the property in the entity</typeparam>
    /// <typeparam name="P">Type of the property in the data-bound control</typeparam>
    public interface ITypeConvertor<E, P>
    {
        #region Public methods

        P Convert(E value);

        E Convert(P value);

        #endregion
    }
}